package com.example.xml

import groovy.xml.MarkupBuilder

/**
 * 创建医院对象 测试
 * @author 张威
 *
 */
class XmlHospitalCreate {
	
	static void main(String[] args) {
		
		def mb = new MarkupBuilder(new PrintWriter('d://groovyTest/hospital.xml'));
		
		mb.hospitalList(updateTime : new Date()){
			
			hospital{
				hospitalId('dysjyqzyyadmin')
				hospitalName('裕安区妇幼保健院')
				timerTime('14:00:00')
				dbServerName('阿里3')
				dbName('ehospital2')
				toEmail('wei.zhang@witontek.com')
				
			}
			
			
		}
	}
	
}
